package com.library.control.user;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.library.model.service.UserService;

public class UserDeleteController extends AbstractController {
	private UserService userservice;
	
	public void setUserservice(UserService userservice) {
		this.userservice = userservice;
	}

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		String id=request.getParameter("member_id");
		userservice.deleteUser(id);
		return new ModelAndView("userdelok");
	}

}
